/* Layout */
import Layout from "../views/layout/Layout";

export const menus = [
  {
    id: 1,
    pId: 0,
    menu_code: "addressbook",
    path: "",
    component: Layout,
    redirect: "orgmain",
    meta: {
      title: "通讯录",
      icon: "iconfont ali-tongxunlu"
    },
    children: [
      {
        id: 10,
        pId: 1,
        menu_code: "addressbook_orgmain",
        path: "orgmain",
        redirect: "orgmain/organize",
        component: () => import("@/views/addressbook/orgmain"),
        meta: { title: "组织架构", noCache: true },
        childHidden: true,
        children: [
          {
            id: 100,
            pId: 10,
            menu_code: "orgmain_organize",
            path: "/orgmain/organize",
            name: "organize",
            component: () => import("@/views/addressbook/organize"),
            meta: { title: "组织架构", noCache: true }
          },
          {
            id: 101,
            pId: 10,
            menu_code: "orgmain_group",
            path: "/orgmain/group",
            name: "group",
            component: () => import("@/views/addressbook/group"),
            meta: { title: "小组", noCache: true }
          }
        ]
      }
    ]
  },
  {
    //活动管理
    id: 2,
    pId: 0,
    menu_code: "activity",
    path: "/activity",
    component: Layout,
    name: "activity",
    redirect: "noredirect",
    meta: {
      title: "论坛活动",
      icon: "iconfont ali-tab_activity"
    },
    children: [
      {
        id: 20,
        pId: 2,
        menu_code: "activity_activityManage",
        path: "activityManage",
        component: () => import("@/views/activity/activityManage"),
        name: "activityManage",
        meta: { title: "活动管理", noCache: true }
      },
      {
        path: "alreadySign",
        component: () => import("@/views/activity/activityManage/alreadySign"),
        hidden: true
      },
      {
        id: 21,
        pId: 2,
        menu_code: "activity_communityManage",
        path: "communityManage",
        component: () => import("@/views/activity/communityManage"),
        name: "communityManage",
        meta: { title: "社区管理", noCache: true }
      },
      {
        path: "detail",
        component: () => import("@/views/activity/communityManage/detail"),
        hidden: true
      },
      {
        id: 22,
        pId: 2,
        menu_code: "activity_publishMsg",
        path: "publishMsg",
        component: () => import("@/views/activity/publishMsg"),
        name: "publishMsg",
        meta: { title: "消息发布", noCache: true }
      },
      {
        id: 23,
        pId: 2,
        menu_code: "activity_advice",
        path: "advice",
        component: () => import("@/views/activity/advice"),
        name: "advice",
        meta: { title: "优化建议", noCache: true }
      },
      {
        id: 24,
        pId: 2,
        menu_code: "article_type",
        path: "articleType",
        component: () => import("@/views/activity/articleType"),
        name: "articleType",
        meta: { title: "帖子类别", noCache: true }
      },
      {
        id: 25,
        pId: 2,
        menu_code: "news_module",
        path: "newsModule",
        component: () => import("@/views/activity/newsModule"),
        name: "newsModule",
        meta: { title: "新闻模块", noCache: true }
      },
      {
        id: 26,
        pId: 2,
        menu_code: "learn_module",
        path: "learnModule",
        component: () => import("@/views/activity/learnModule"),
        name: "learnModule",
        meta: { title: "学习模块", noCache: true }
      },
      // {
      //   id: 25,
      //   pId: 2,
      //   menu_code: "cover_manage",
      //   path: "coverManage",
      //   component: () => import("@/views/activity/articleType"),
      //   name: "coverManage",
      //   meta: { title: "封面管理", noCache: true }
      // },
      {
        path: "adviceDetail",
        component: () => import("@/views/activity/advice/adviceDetail"),
        hidden: true
      }
    ]
  },
  {
    //积分成就
    id: 3,
    pId: 0,
    menu_code: "achievement",
    path: "/achievement",
    component: Layout,
    name: "achievement",
    redirect: "noredirect",
    meta: {
      title: "积分成就",
      icon: "iconfont ali-jifen"
    },
    children: [
      {
        id: 30,
        pId: 3,
        menu_code: "achievement_action",
        path: "action",
        component: () => import("@/views/achievement/action"),
        name: "xingweijifen",
        meta: { title: "行为积分", noCache: true }
      },
      {
        id: 31,
        pId: 3,
        menu_code: "achievement_integralType",
        path: "integralType",
        component: () => import("@/views/achievement/integralType"),
        name: "integralType",
        meta: { title: "积分类别", noCache: true }
      },
      {
        id: 32,
        pId: 3,
        menu_code: "achievement_medalGroup",
        path: "medalGroup",
        component: () => import("@/views/achievement/medalGroup"),
        name: "medalGroup",
        meta: { title: "勋章分组", noCache: true }
      },
      {
        id: 33,
        pId: 3,
        menu_code: "achievement_medal",
        path: "medal",
        component: () => import("@/views/achievement/medal"),
        name: "medal",
        meta: { title: "成就勋章", noCache: true }
      },
      {
        id: 34,
        pId: 3,
        menu_code: "achievement_integralCount",
        path: "integralCount",
        redirect: "/integralCount/list",
        component: () => import("@/views/achievement/count/main"),
        meta: { title: "积分统计", noCache: true },
        childHidden: true,
        children: [
          {
            id: 300,
            pId: 34,
            menu_code: "integralCount_integralCount",
            path: "/integralCount/list",
            name: "integralCountChild",
            meta: { title: "积分统计", noCache: true },
            component: () => import("@/views/achievement/count/list")
          },
          {
            path: "/integralCount/detail",
            component: () => import("@/views/achievement/count/detail"),
            hidden: true
          }
        ]
      },
      {
        id: 35,
        pId: 3,
        menu_code: "role_integral",
        path: "roleIntegral",
        component: () => import("@/views/achievement/roleIntegral"),
        name: "roleIntegral",
        meta: { title: "角色积分", noCache: true }
      },
      {
        id: 36,
        pId: 3,
        menu_code: "approve_type",
        path: "approveType",
        component: () => import("@/views/achievement/approveType"),
        name: "approveType",
        meta: { title: "认可类型", noCache: true }
      }
    ]
  },
  {
    //其他管理
    id: 4,
    pId: 0,
    menu_code: "other",
    path: "/other",
    component: Layout,
    redirect: "noredirect",
    name: "otherManage",
    meta: {
      title: "其他管理",
      icon: "iconfont ali-others"
    },
    children: [
      {
        id: 40,
        pId: 4,
        menu_code: "other_draw",
        path: "draw",
        component: () => import("@/views/otherManage/draw"),
        name: "draw",
        meta: { title: "抽奖", noCache: true }
      },
      {
        //创建抽奖
        path: "createDraw",
        component: () => import("@/views/otherManage/draw/create"),
        hidden: true
      },
      {
        //获奖名单
        path: "nameList",
        component: () => import("@/views/otherManage/draw/list"),
        hidden: true
      },
      {
        //问卷调查
        id: 41,
        pId: 4,
        menu_code: "other_question",
        path: "question",
        component: () => import("@/views/otherManage/question"),
        name: "question",
        meta: { title: "问卷调查", noCache: true }
      },
      {
        //创建问卷
        path: "createQuestion",
        component: () => import("@/views/otherManage/question/create"),
        hidden: true
      },
      {
        //详细数据
        path: "detailed",
        component: () => import("@/views/otherManage/question/detailed"),
        hidden: true
      },
      {
        //问卷详情
        path: "questionDetail",
        component: () => import("@/views/otherManage/question/questionDetail"),
        hidden: true
      },
      {
        //投票管理
        id: 42,
        pId: 4,
        menu_code: "other_vote",
        path: "vote",
        component: () => import("@/views/otherManage/vote"),
        name: "vote",
        meta: { title: "投票", noCache: true }
      },
      {
        //投票详情
        path: "voteCount",
        component: () => import("@/views/otherManage/vote/count"),
        hidden: true
      },
      {
        //投票统计
        path: "voteStatistics",
        component: () => import("@/views/otherManage/vote/statistics"),
        hidden: true
      }
    ]
  },
  {
    //工会管理
    id: 5,
    pId: 0,
    menu_code: "union",
    path: "/union",
    component: Layout,
    name: "union",
    redirect: "noredirect",
    meta: {
      title: "工会管理",
      icon: "iconfont ali-union"
    },
    children: [
      {
        id: 50,
        pId: 5,
        menu_code: "org_Manage",
        path: "orgManage",
        component: () => import("@/views/unionManage/org"),
        name: "orgManage",
        meta: { title: "组织管理", noCache: true }
      },
      {
        id: 51,
        pId: 5,
        menu_code: "banner_manage",
        path: "bannerManage",
        component: () => import("@/views/unionManage/banner"),
        name: "bannerManage",
        meta: { title: "Banner管理", noCache: true }
      },
      {
        id: 52,
        pId: 5,
        menu_code: "page_set",
        path: "pageSet",
        component: () => import("@/views/unionManage/pageSet"),
        name: "pageSet",
        meta: { title: "页面设置", noCache: true }
      },
    ]
  },
  {
    //设置
    id: 6,
    pId: 0,
    menu_code: "sysSet",
    path: "/sysSet",
    component: Layout,
    redirect: "noredirect",
    name: "sysSet",
    meta: {
      title: "系统设置",
      icon: "iconfont ali-setting"
    },
    children: [
      {
        //企业设置
        id: 60,
        pId: 6,
        menu_code: "sysSet_enterprise",
        path: "/enterprise",
        component: () => import("@/views/sysSet/enterprise"),
        name: "enterprise",
        meta: { title: "企业设置" },
        redirect: "noredirect",
        children: [
          {
            id: 600,
            pId: 60,
            menu_code: "enterprise_enterprisesSet",
            path: "enterprisesSet",
            component: () => import("@/views/sysSet/enterprise/enterprisesSet"),
            name: "enterprisesSet",
            meta: { title: "基础设置", noCache: true }
          },
          {
            id: 601,
            pId: 60,
            menu_code: "enterprise_mailList",
            path: "mailList",
            component: () => import("@/views/sysSet/enterprise/mailList"),
            name: "mailList",
            meta: { title: "通讯录设置", noCache: true }
          },
          // {
          //   id: 602,
          //   pId: 60,
          //   menu_code: "enterprise_template",
          //   path: "template",
          //   component: () => import("@/views/sysSet/enterprise/template"),
          //   name: "template",
          //   meta: { title: "模板选择", noCache: true }
          // },
          // {
          //   id: 603,
          //   pId: 60,
          //   menu_code: "enterprise_editIndex",
          //   path: "editIndex",
          //   component: () => import("@/views/sysSet/enterprise/editIndex"),
          //   name: "editIndex",
          //   meta: { title: "编辑首页", noCache: true }
          // }
        ]
      },
      {
        //权限设置
        id: 61,
        pId: 6,
        menu_code: "sysSet_authority",
        path: "/authority",
        component: () => import("@/views/sysSet/authority"),
        name: "authority",
        meta: { title: "权限设置" },
        redirect: "noredirect",
        children: [
          {
            id: 610,
            pId: 61,
            menu_code: "authority_role",
            path: "role",
            component: () => import("@/views/sysSet/authority/role"),
            name: "role",
            meta: { title: "角色管理", noCache: true }
          },
          {
            id: 611,
            pId: 61,
            menu_code: "authority_menu",
            path: "menu",
            component: () => import("@/views/sysSet/authority/menu"),
            name: "menu",
            meta: { title: "菜单列表", noCache: true }
          }
        ]
      },
      {
        //其他设置
        id: 62,
        pId: 6,
        menu_code: "sysSet_otherFit",
        path: "/otherFit",
        component: () => import("@/views/sysSet/otherSet"),
        name: "otherFit",
        meta: { title: "其他设置" },
        redirect: "noredirect",
        children: [
          {
            id: 620,
            pId: 62,
            menu_code: "otherFit_singnIn",
            path: "singnIn",
            component: () => import("@/views/sysSet/otherSet/singnIn"),
            name: "singnIn",
            meta: { title: "签到管理", noCache: true }
          },
          {
            id: 621,
            pId: 62,
            menu_code: "otherFit_welfare",
            path: "welfare",
            component: () => import("@/views/sysSet/otherSet/welfare"),
            name: "welfare",
            meta: { title: "福利祝福", noCache: true }
          },
          {
            id: 622,
            pId: 62,
            menu_code: "otherFit_home_banner",
            path: "homeBanner",
            component: () => import("@/views/sysSet/otherSet/homeBanner"),
            name: "homeBanner",
            meta: { title: "首页Banner", noCache: true }
          },
          {
            id: 623,
            pId: 62,
            menu_code: "otherFit_forum_banner",
            path: "forumBanner",
            component: () => import("@/views/sysSet/otherSet/forumBanner"),
            name: "forumBanner",
            meta: { title: "论坛Banner", noCache: true }
          }
        ]
      }
    ]
  },
  {
    // 日志
    id: 7,
    pId: 0,
    menu_code: "log",
    path: "/log",
    component: Layout,
    name: "log",
    redirect: "noredirect",
    meta: {
      title: "日志查看",
      icon: "iconfont ali-rizhi"
    },
    children: [
      {
        id: 70,
        pId: 7,
        menu_code: "log_actionManage",
        path: "actionManage",
        component: () => import("@/views/logManage/actionManage"),
        name: "actionManage",
        meta: { title: "行为管理", noCache: true }
      },
      {
        id: 71,
        pId: 7,
        menu_code: "log_userLog",
        path: "userLog",
        component: () => import("@/views/logManage/userLog"),
        name: "userLog",
        meta: { title: "用户日志", noCache: true }
      },
      {
        id: 72,
        pId: 7,
        menu_code: "log_sysLog",
        path: "sysLog",
        component: () => import("@/views/logManage/sysLog"),
        name: "sysLog",
        meta: { title: "系统日志", noCache: true }
      }
    ]
  },
  {
    // 审批
    id: 8,
    pId: 0,
    menu_code: "approval",
    path: "/approval",
    component: Layout,
    name: "approval",
    redirect: "noredirect",
    meta: {
      title: "审批管理",
      icon: "iconfont ali-shenpiguanli"
    },
    children: [
      {
        id: 80,
        pId: 8,
        menu_code: "approval_myDaiBan",
        path: "/myDaiBan",
        component: () => import("@/views/approval/myDaiBan"),
        name: "myDaiBan",
        meta: { title: "我的待办", noCache: true },
        redirect: "noredirect",
        children: [
          {
            id: 800,
            pId: 80,
            menu_code: "approval_pendingApprova",
            path: "pendingApprova",
            component: () => import("@/views/approval/myDaiBan/pendingApprova"),
            name: "pendingApprova",
            meta: { title: "待我审批的", noCache: true }
          },
          {
            id: 801,
            pId: 80,
            menu_code: "approval_approved",
            path: "approved",
            component: () => import("@/views/approval/myDaiBan/approved"),
            name: "approved",
            meta: { title: "我已审批的", noCache: true }
          },
          {
            id: 802,
            pId: 80,
            menu_code: "my_launch",
            path: "launch",
            component: () => import("@/views/approval/myDaiBan/launch"),
            name: "launch",
            meta: { title: "我发起的", noCache: true }
          },
        ]
      },
      {
        id: 81,
        pId: 8,
        menu_code: "approval_processConfiguration",
        path: "processConfiguration",
        component: () => import("@/views/approval/processConfiguration"),
        name: "processConfiguration",
        meta: { title: "流程配置", noCache: true }
      }
    ]
  },
  {
    // 福利
    id: 9,
    pId: 0,
    menu_code: "welfareManage",
    path: "/welfareManage",
    component: Layout,
    name: "welfareManage",
    redirect: "noredirect",
    meta: {
      title: "福利管理",
      icon: "iconfont ali-huodong"
    },
    children: [
      {
        id: 90,
        pId: 9,
        menu_code: "welfareManage_marry",
        path: "marry",
        component: () => import("@/views/welfareManage/marry"),
        name: "marry",
        meta: { title: "结婚福利", noCache: true }
      },
      {
        id: 91,
        pId: 9,
        menu_code: "welfareManage_birth",
        path: "birth",
        component: () => import("@/views/welfareManage/birth"),
        name: "birth",
        meta: { title: "生育福利", noCache: true }
      }
    ]
  },
  // {
  //   // 福利
  //   id: 9,
  //   pId: 0,
  //   menu_code: "welfareManage",
  //   path: "/welfareManage",
  //   component: Layout,
  //   name: "welfareManage",
  //   redirect: "noredirect",
  //   meta: {
  //     title: "福利管理",
  //     icon: "iconfont ali-shenpiguanli"
  //   },
  //   children: [
  //     {
  //       id: 90,
  //       pId: 9,
  //       menu_code: "welfare_marry",
  //       path: "marry",
  //       component: () => import("@/views/welfareManage/marry"),
  //       name: "marry",
  //       meta: { title: "结婚福利", noCache: true }
  //     },
  //     {
  //       id: 91,
  //       pId: 9,
  //       menu_code: "welfare_birth",
  //       path: "birth",
  //       component: () => import("@/views/welfareManage/birth"),
  //       name: "birth",
  //       meta: { title: "生育福利", noCache: true }
  //     }
  //   ]
  // }
];
